package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"movie/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/login", &controllers.MovieController{}, "get:Login")
	beego.Router("/add", &controllers.MovieController{}, "post:Add")
	beego.Router("/upload", &controllers.MovieController{}, "post:Upload")
	beego.Router("/list", &controllers.MovieController{}, "get:List")
	beego.Router("/info", &controllers.MovieController{}, "get:Info")
	beego.Router("/rank", &controllers.MovieController{}, "get:Rank")
}
